package com.ruoyi.framework.config;

import lombok.Data;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "ftp")
public class FTPConfig {
    private static String host;
    private static Integer port;
    private static String username;
    private static String password;
    private static String prefix;
    private static String url;
    private static String encoding;
    private static Boolean passiveMode;
    private static Integer connectTimeout;
    private static Integer bufferSize;

    public static String getHost() {
        return host;
    }

    public static Integer getPort() {
        return port;
    }

    public static String getUsername() {
        return username;
    }

    public static String getPassword() {
        return password;
    }

    public static String getPrefix() {
        return prefix;
    }

    public static String getUrl() {
        return url;
    }

    public static String getEncoding() {
        return encoding;
    }

    public static Boolean getPassiveMode() {
        return passiveMode;
    }

    public static Integer getConnectTimeout() {
        return connectTimeout;
    }

    public static Integer getBufferSize() {
        return bufferSize;
    }

    public void setHost(String host) {
        FTPConfig.host = host;
    }

    public void setPort(Integer port) {
        FTPConfig.port = port;
    }

    public void setUsername(String username) {
        FTPConfig.username = username;
    }

    public void setPassword(String password) {
        FTPConfig.password = password;
    }

    public void setPrefix(String prefix) {
        FTPConfig.prefix = prefix;
    }

    public void setUrl(String url) {
        FTPConfig.url = url;
    }

    public void setEncoding(String encoding) {
        FTPConfig.encoding = encoding;
    }

    public void setPassiveMode(Boolean passiveMode) {
        FTPConfig.passiveMode = passiveMode;
    }

    public void setConnectTimeout(Integer connectTimeout) {
        FTPConfig.connectTimeout = connectTimeout;
    }

    public void setBufferSize(Integer bufferSize) {
        FTPConfig.bufferSize = bufferSize;
    }
}
